#include <iostream>
#include <thread>
#include <functional>
using namespace std;

void run(int x){
    cout << "x = " << x << endl;
}

int main() {
    thread th(bind(run, 999));

    th.join();
    return 0;
}
